// 获取用户信息的接口
import request from '@/utils/request.js'
export const getUserAPI = () => {
  return request.get('/my/userinfo')
}
// 获取左侧菜单数据的接口
export const getMenusAPI = () => {
  return request.get('/my/menus')
}
// 修改信息接口
export const updateUserAPI = (obj) => {
  return request.put('/my/userinfo', obj)
}
// 更换头像API
export const updateAvatarAPI = (avatar) => {
  return request.patch('/my/update/avatar', { avatar })
}
// 更换密码API
export const updatePwdAPI = (obj) => {
  return request.patch('/my/updatepwd', obj)
}
